from enum import Enum, auto


class GearType(Enum):
    """装备类型"""
    DD_MAIN_GUN = auto()
    """小型舰炮"""
    CL_MAIN_GUN = auto()
    """中型舰炮"""
    BB_MAIN_GUN = auto()
    """大型舰炮"""
    SURFACE_TORPEDO = auto()
    """水面鱼雷"""
    SUB_TORPEDO = auto()
    """潜艇鱼雷"""
    ANTI_AIR = auto()
    """防空炮"""
    FIGHTER = auto()
    """战斗机"""
    DIVE_BOMBER = auto()
    """轰炸机"""
    TORP_BOMBER = auto()
    """鱼雷机"""
    AUXILIARY = auto()
    """设备"""
    MISC = auto()
    """其他"""


class GearAttr(Enum):
    """装备属性"""
    NAME = "name"
    """装备名"""
    CAMP = "camp"
    """所属阵营"""
    GEAR_RARITY = "gear_rarity"
    """稀有度"""
    ENHANCEMENT_LEVEL = "enhancement_level"
    """强化等级"""
    GEAR_TYPE = "gear_type"
    """装备类型"""
    DAMAGE_MODIFIER = "damage_modifier"
    """伤害修正比例"""
    ATTR_EFF = "attr_eff"
    """属性效率"""
    EQUIPPABLE = "equippable"
    """适用舰种"""


class ShipWeaponAttr(Enum):
    """舰船武器属性, 适用于舰炮和鱼雷"""
    DMG = "dmg"
    """单次伤害"""
    COUNT = "count"
    """伤害次数"""
    FR = "fr"
    """射速"""
    ARMOR_MOD = "armor_mod"
    """对甲比例"""
    ATTR_INC = "attr_inc"
    """属性提升"""
